﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _2___IEnumerable
{
    public static class EnumFunctions
    {
        public static T Sum<T>(this IEnumerable<T> collection)
        {
            T result = default(T);
            foreach (var item in collection)
            {
                //result = result +item;
            }
            return result;
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}
